package com.book;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Description：
 * 开启资源服务，因为程序需要对外暴露获取token的API接口
 * 开启缓存
 * @Author： leo.xiong
 * @CreateDate： 2019/10/09 15:38
 * @Email： leo.xiong@suyun360.com
 * Version：1.0
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
@EnableFeignClients
@MapperScan(value = "com.book.**.mapper")
public class BookAuthServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(BookAuthServerApplication.class, args);
    }
}
